package com.mugu.yunying.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.mugu.common.annotation.Excel;
import com.mugu.common.core.domain.BaseEntity;

/**
 * 广告对象 tb_advertising
 * 
 * @author ruoyi
 * @date 2021-03-27
 */
public class Advertising extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 系统id */
    private Integer id;

    /** 用户端/医生端 */
    @Excel(name = "用户端/医生端")
    private String appType;

    /** 排序 */
    @Excel(name = "排序")
    private Integer sort;

    /** 图片 */
    @Excel(name = "图片")
    private String picture;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 广告内容 */
    private String detail;

    /** 状态 0:无效 1:有效 */
    @Excel(name = "状态 0:无效 1:有效")
    private Integer status;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDatetime;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setAppType(String appType) 
    {
        this.appType = appType;
    }

    public String getAppType() 
    {
        return appType;
    }
    public void setSort(Integer sort) 
    {
        this.sort = sort;
    }

    public Integer getSort() 
    {
        return sort;
    }
    public void setPicture(String picture) 
    {
        this.picture = picture;
    }

    public String getPicture() 
    {
        return picture;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setDetail(String detail) 
    {
        this.detail = detail;
    }

    public String getDetail() 
    {
        return detail;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setCreateDatetime(Date createDatetime) 
    {
        this.createDatetime = createDatetime;
    }

    public Date getCreateDatetime() 
    {
        return createDatetime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("appType", getAppType())
            .append("sort", getSort())
            .append("picture", getPicture())
            .append("title", getTitle())
            .append("detail", getDetail())
            .append("status", getStatus())
            .append("createDatetime", getCreateDatetime())
            .toString();
    }
}
